# -*- coding: utf-8 -*-

"""
@author: Laowang
@contact: QQ:1125564921
@Created on: 2022/6/22
@Remark: 
"""

import os


from framework_strategy.gopy.base.type import *

# dir + file = filename-path
def file_join(path: PathDir, file: FileName):
    """ Paths are merged to obtain the destination file path """

    return os.path.join(path, file)


def file_exist(file):
    return os.path.exists(file)


def log_path(file):
    dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
    cfg = os.path.join(dir, "conf", file)
    return cfg